﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Install_SimpleBackup
{
    static class SimpleBackup
    {
        public const String sCopyFile = "@echo off \r\nxcopy /r /h /i %1 \"__DIR_BACKUP__\" && rename \"__DIR_BACKUP__%~nx1\" \"%~n1_%date:~6,6%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2%%~x1\"";
        public const String sCopyDir = "@echo off \r\nset Folder=%~n1_%date:~6,6%-%date:~3,2%-%date:~0,2%_%time:~0,2%-%time:~3,2%-%time:~6,2% \r\nmkdir \"__DIR_BACKUP__%Folder%\" && xcopy /r /h /i /s %1 \"__DIR_BACKUP__%Folder%\"";
        public const String sCopyFileName = "SimpleBackup.bat";
        public const String sCopyDirName = "SimpleBackupFolder.bat";

        /// <summary>
        /// Point d'entrée principal de l'application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new InstallForm());
        }
    }
}
